package com.sikaryofficial.canalclient.domain.mapping;

import com.sikaryofficial.canalclient.domain.doc.ActivityDoc;
import com.sikaryofficial.canalclient.domain.entity.ActivityMP;
import com.sikaryofficial.canalclient.domain.jpa.ActivityPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 活动映射接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface ActivityMapping {
    ActivityMapping INSTANCE = Mappers.getMapper(ActivityMapping.class);

    /**
     * 实体映射resp
     *
     * @param activityReq
     * @return
     */
    ActivityDoc coverReqToEntity(ActivityPO activityReq);

    ActivityDoc coverMpToDoc(ActivityMP activityReq);
    /**
     * 实体映射resp
     *
     * @param activityReq
     * @return
     */
    List<ActivityDoc> coverPoToList(List<ActivityMP> activityReq);

}
